import request from '@/utils/request.js'
export const add = (data) => {
    return request.post(
        '/audio/add',
        data
    )
}
export const upload = (data) => {
    return request.post(
        '/upload/file',
        data
    )
}

export const dele = (id) => {
    return request.delete(
        `/audio/delete/${id}`,
    )
}
export const list = (data) => {
    return request.get(
        '/audio/getList',
        {
            params:data,
        }
    )
}
export const find = (audioTitle) => {
    return request.get(
        `/audio/findByTitle/${audioTitle}`,
    )
}
